<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        button {
            background-color: orange;
            color: white;
            border: none;
            border-radius: 5px;
        }
    </style>

</head>

<body>
    <div id="app">
        <!-- v-on:事件名称="方法名/表达式" -->
        <button v-on:click="addCount">点击进入</button>
    </div>


    <!-- 引入vue -->
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <script>
        const { createApp, ref, reactive, toRefs, watch } = Vue;
        // 创建Vue实例
        const app = createApp({
            setup() {
                const addCount = () => {
                    alert('欢迎进入vue课堂')
                }
                return {
                    addCount
                }
            }
        })
        // 挂载到dom
        app.mount('#app')
    </script>
</body>

</html>